﻿<%@ Assembly Name="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Assembly Name="VetumaForSharePoint, Version=1.0.0.0, Culture=neutral, PublicKeyToken=07028d14424a10f8" %>
<%@ Assembly Name="Fujitsu.Vetuma.Toolkit, Version=2.0.0.0, Culture=neutral, PublicKeyToken=ed2dbd0afd24f4eb" %>

<%@ Page Language="C#" MasterPageFile="~/_layouts/simple.master" AutoEventWireup="true"
    Inherits="VetumaForSharePoint.VetumaPasswordRecovery" EnableViewState="true" EnableViewStateMac="false" %>

<%@ Register Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"
    Namespace="Microsoft.SharePoint.WebControls" TagPrefix="cc1" %>
<asp:Content ID="PageHeader" runat="server" ContentPlaceHolderID="PlaceHolderPageTitle">
    <cc1:EncodedLiteral ID="EncodedLiteralHeaderTitle" runat="server" Text="<%$ Resources:VetumaForSP, PasswordRecovery %>"
        EncodeMethod="HtmlEncode">
    </cc1:EncodedLiteral>
</asp:Content>
<asp:Content ID="PageTitle" runat="server" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea">
    <cc1:EncodedLiteral ID="EncodedLiteralTitle" runat="server" Text="<%$ Resources:VetumaForSP, PasswordRecovery %>"
        EncodeMethod="HtmlEncode">
    </cc1:EncodedLiteral>
</asp:Content>
<asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">
    <cc1:FormDigest ID="FormDigest1" runat="server">
    </cc1:FormDigest>
    <asp:Panel ID="Panel1" runat="server">
        <table id="TableChangePassword" runat="server" class="ms-input">
            <tr>
                <td colspan="2">
                    <asp:Label ID="Label9" runat="server" Text="<%$ Resources:VetumaForSP, RequiredExplanation %>"></asp:Label>
                </td>
            </tr>
            <tr id="TableRowRecovery" runat="server">
                <td>
                    <asp:Label ID="Label4" runat="server" Text="<%$ Resources:VetumaForSP, UserName %>"></asp:Label>
                </td>
                <td>
                    <asp:Label ID="LabelUserNameRecovery" runat="server" Text=""></asp:Label>
                </td>
            </tr>
            <tr id="TableRowOldPassword" runat="server">
                <td>
                    <asp:Label ID="Label1" runat="server" Text="<%$ Resources:VetumaForSP, OldPassword %>"></asp:Label>
                    <asp:Label ID="Label6" runat="server" Text="*"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="TextBoxOldPassword" TextMode="Password" runat="server" Width="200px" MaxLength="14"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidatorOldPwd" runat="server" Text="*"
                        ToolTip="<%$ Resources:VetumaForSP, Required %>" ControlToValidate="TextBoxOldPassword"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label2" runat="server" Text="<%$ Resources:VetumaForSP, Password %>"></asp:Label>
                    <asp:Label ID="Label7" runat="server" Text="*"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="TextBoxPassword" TextMode="Password" runat="server" Width="200px" MaxLength="14"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidatorPwd" runat="server" Text="*"
                        ToolTip="<%$ Resources:VetumaForSP, Required %>" ControlToValidate="TextBoxPassword"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidatorPwd" runat="server" ControlToValidate="TextBoxPassword" 
                                                    ValidationExpression="^(?=(.*\W){1,})^(?=(.*\d){1,})^(.{6,12})$" Text="*" Display="Dynamic"
                                                    ToolTip="<%$ Resources:VetumaForSP, PasswordExpressionInfo %>" ></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                    <asp:Label ID="Label17" runat="server" Width="250px" Text="<%$ Resources:VetumaForSP, PasswordExpressionInfoShort %>"></asp:Label>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label3" runat="server" Text="<%$ Resources:VetumaForSP, PasswordRetype %>"></asp:Label>
                    <asp:Label ID="Label8" runat="server" Text="*"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="TextBoxPasswordRetype" TextMode="Password" runat="server" Width="200px" MaxLength="14"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidatorPwdRetype" runat="server" Text="*"
                        ToolTip="<%$ Resources:VetumaForSP, Required %>" ControlToValidate="TextBoxPasswordRetype"></asp:RequiredFieldValidator>
                    <asp:CompareValidator ID="CompareValidatorPwd" runat="server" Text="*" ControlToCompare="TextBoxPassword"
                        ControlToValidate="TextBoxPasswordRetype" ToolTip="<%$ Resources:VetumaForSP, CompareValidationText %>"
                        Operator="Equal"></asp:CompareValidator>
                </td>
            </tr>
            <tr>
                <td colspan="2" align="right">
                    <asp:Button ID="ButtonChangePassword" runat="server" OnClick="ButtonChangePassword_Click" Text="<%$ Resources:VetumaForSP, ChangePassword %>" />
                </td>
            </tr>
        </table>
        <asp:Label ID="lblInfo" runat="server" Text=""></asp:Label>
    </asp:Panel>
</asp:Content>
